# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Ferass El Hafidi <funderscore@postmarketos.org>
pkgname=device-librecomputer-lafrite
pkgdesc="Libre Computer AML-S805X-AC-V1.0"
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
	linux-postmarketos-amlogic
	postmarketos-base
	soc-amlogic-s905
"
makedepends="devicepkg-dev"
source="
	deviceinfo
	modules-initfs
"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="vdec firmware"
	depends="linux-firmware-meson"
	mkdir "$subpkgdir"
}

sha512sums="
84a0ac6e3f0ab540cb274aa5557e30f2a500e367bfcddcc192a2bf809db079910ba73619469287399a1243d69291710af76f6507fc9122d8f6ff1533c54450bd  deviceinfo
52948c2884a6f6384e12b7a598f70878526d0d3293c214425170145231144ec7de805c038641741a4a5d75b50e554f6a3fa3769784a674217ed032f9b6a233c8  modules-initfs
"
